package cn.aishua.data;

import android.os.Parcel;
import android.os.Parcelable;

public class BankCardInfo
    implements Parcelable
{

    public static final Creator<BankCardInfo> CREATOR = new Creator<BankCardInfo>()
    {

        public BankCardInfo createFromParcel( Parcel src )
        {
            return new BankCardInfo( src.readInt(), src.readString(), src.readString(), src.readString(),
                src.readString(), src.readInt(), src.readInt() );
        }

        public BankCardInfo[] newArray( int size )
        {
            return new BankCardInfo[size];
        }
    };

    private Integer cardId;
    private String bankType;
    private String cardNum;
    private String cardType;
    private String date;
    private Integer credit;
    private Integer exchangeCard;

    public BankCardInfo()
    {
    }

    public BankCardInfo(int cardId, String bankType, String cardNum, String cardType, String date, int credit,
        int exchangeCard)
    {
        this.cardId = cardId;
        this.bankType = bankType;
        this.cardNum = cardNum;
        this.cardType = cardType;
        this.date = date;
        this.credit = credit;
        this.exchangeCard = exchangeCard;
    }

    public int describeContents()
    {
        return 0;
    }

    public void writeToParcel( Parcel dest, int flags )
    {
        dest.writeInt( cardId );
        dest.writeString( bankType );
        dest.writeString( cardNum );
        dest.writeString( cardType );
        dest.writeString( date );
        dest.writeLong( credit );
        dest.writeInt( exchangeCard );
    }

    public String getBankType()
    {
        return bankType;
    }

    public void setBankType( String bankType )
    {
        this.bankType = bankType;
    }

    public String getCardNum()
    {
        return cardNum;
    }

    public void setCardNum( String cardNum )
    {
        this.cardNum = cardNum;
    }

    public String getCardType()
    {
        return cardType;
    }

    public void setCardType( String cardType )
    {
        this.cardType = cardType;
    }

    public String getDate()
    {
        return date;
    }

    public void setDate( String date )
    {
        this.date = date;
    }

    public Integer getCredit()
    {
        return credit;
    }

    public void setCredit( Integer credit )
    {
        this.credit = credit;
    }

    public Integer getExchangeCard()
    {
        return exchangeCard;
    }

    public void setExchangeCard( Integer exchangeCard )
    {
        this.exchangeCard = exchangeCard;
    }

    public Integer getCardId()
    {
        return cardId;
    }

    public void setCardId( Integer cardId )
    {
        this.cardId = cardId;
    }

}
